/**
 * Created by gantian on 2016/12/23.
 */
var mongoose=require('mongoose');
var dbconfig=require('../config/db.config')
mongoose.connect(dbconfig.url);
var StudentSchem=mongoose.Schema({
  name:String,
  age:Number,
  score:Number,
  sex:String
})
var Student=mongoose.model("Student",StudentSchem);
module.exports=mongoose
